/* ////////////// reset and comm //////// */
* {
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
}
body {
    display: flex;
    height: 100vh;
    width: 100vw;
    place-content: center;
    place-items: center;
    background: #2c3e50;
}
.container {
    padding: 20px;
}
.box {
    width: 1200px;
    height: 100%;
}
.box ul {
    display: flex;
    justify-content: space-evenly;
}
.box ul li {
    position: relative;
    display: flex;
    place-content: center;
    place-items: center;
    width: 200px;
    height: 200px;
    line-height: 200px;
    text-align: center;
    background: #bdc3c7;
    cursor: pointer;
    overflow: hidden;
}
.box ul li span[class='word'] {
    position: absolute;
}
/* /////////////////////////animate 1///////////////// */
.load_1 .item_1 {
    width: 80%;
    height: 80%;
    border: 10px solid transparent;
    border-radius: 100%;
    border-left-color:#ff3838 ;
    border-right-color:#ff3838 ;
    animation:loadFirstAnimate 2s infinite,colorAnimate 2s infinite;
    
}
.load_1:hover .item_1 {
    animation-play-state: paused;
}

.word{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    font: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #f53b57;
}


/* /////////////////////////animate 2 ////////////////*/
.box li.load_2 {
    justify-content: space-evenly;
}
.load_2 span.word {
    bottom: 20px;
}
.load_2 span:not([class='word']) {
    width: 10px;
    height: 70px;
    background: #f53b57;
    border-radius: 5px;
    animation: loadSeconAnimate 2s infinite,colorAnimate 2s infinite ;
}
.load_2 span:nth-child(1) {
    animation-delay: -.8s;
}
.load_2 span:nth-child(2) {
    animation-delay: -.6s;
}
.load_2 span:nth-child(3) {
    animation-delay: -.4s;
}
.load_2 span:nth-child(4) {
    animation-delay: -.2s;
}
.load_2 span:nth-child(5) {
    animation-delay: 0s;
}

/* //////////////animate 3/////////////// */
.load_3 span:not([class='word']) {
    margin: 10px;
    width: 20px;
    height: 20px;
    background: #f53b57;
    border-radius: 50%;
    animation: loadThirdAnimate 2s infinite,colorAnimate 2s infinite;
}
.load_3 span.word {
    bottom: 20px;
    animation:  colorAnimate 2s infinite;
    ;
}
.load_3 span:nth-child(1) {
    animation-delay: -.6s;
}
.load_3 span:nth-child(2) {
    animation-delay: -.4s;
}
.load_3 span:nth-child(2) {
    animation-delay: -.2s;
}

/* //////////////////animate 4 //////////////// */
.load_4 .item_2 {
    position: absolute;
    width: 50%;
    height: 50%;
    border: 10px solid #f53b57;
    animation: fourthAnimate 2s infinite,colorAnimate 2s infinite;
   
}
.load_4 .item_2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: #f53b57;
    animation: item2BeforeAnimate 4s infinite;
}
/* ///////////// animate 5 ////////////// */

.load_5 .wrap {
    display: grid;
    height: 120px;
    width: 120px;
    place-items: center;
    grid-template-rows: repeat(3,20px);
    grid-template-columns: repeat(3,20px);
    gap: 2px;
    
}

.load_5 .item_4{
    height: 20px;
    width: 20px;
    background: #f53b57;
    animation: fiveAnimate 4s infinite,colorAnimate 1.5s infinite;
    
}
.load_5 .item_4:nth-child(2) {
    animation-delay: .25s;
}
.load_5 .item_4:nth-child(3) {
    animation-delay: .5s;
}
.load_5 .item_4:nth-child(4) {
    animation-delay: .75s;
}
.load_5 .item_4:nth-child(5) {
    animation-delay: 1s;
}
.load_5 .item_4:nth-child(6) {
    animation-delay: 1.25s;
}
.load_5 .item_4:nth-child(7) {
    animation-delay: 1.5s;
}
.load_5 .item_4:nth-child(8) {
    animation-delay: 1.75s;
}
.load_5 .item_4:nth-child(9) {
    animation-delay: 2s;
}









/* //////////////////// animate area/////////////////// */
@keyframes loadFirstAnimate {
    to{
        transform: rotate(360deg);
    }
}

@keyframes colorAnimate {
    to{
        filter:hue-rotate(360deg);
    }
}
@keyframes loadSeconAnimate {
    0% {
    height: 70px;
    }
    50% {
        height: 10px;
    }
    100% {
        filter:hue-rotate(360deg);
        height: 70px;
    }
}

@keyframes loadThirdAnimate {
    0%,100% {
        transform: scale(.1);
    }
    50% {
        transform: scale(1.5);
    }
}

@keyframes fourthAnimate {
     0%{
        transform: rotate(0deg);
    }
    
    25%{
        transform: rotate(0deg);
    }
    50%{
        transform: rotate(180deg);
    }
    75%{
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes item2BeforeAnimate {
     0%{
       height: 0;
    }
    
    25%{
       height: 100%;
    }
    50%{
        height: 100%;
    }
    75%{
       height: 0;
    }
    100% {
        height: 0;
    }
}
@keyframes fiveAnimate {
    0%{
        transform: translateY(0px);
        opacity: 1;
    }
    25%{
        transform: translateY(20px);
        opacity: 0;
    }
    50%{
        transform: translateY(20px);
        opacity: 0;
    }
    55%{
        transform: translateY(0px);
        opacity: 1;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }  
}